home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 4.iso
/
dist
/
fw_xpat2.idb
/
usr
/
freeware
/
catman
/
u_man
/
cat6
/
xpat2.Z
/
xpat2
Wrap
Text File
|
2002-01-08
|
13KB
|
397 lines
XPAT2(6) XPAT2(6)
NNAAMMEE
xpat2 - generic patience game for X11
SSYYNNOOPPSSIISS
xxppaatt22 [ _o_p_t_i_o_n_s ] [ _s_e_e_d ] [ _s_a_v_e_d _g_a_m_e ]
DDEESSCCRRIIPPTTIIOONN
_x_p_a_t_2 is the successor of xxppaatt, a generic patience game
which can be used with different rule sets. It does
understand the rules of the well-known _S_p_i_d_e_r game, as
well as _K_l_o_n_d_i_k_e and others. It features a flexible lay
out which responds to window resize commands and possibil
ities to customize the existing rules. _x_p_a_t_2 has either a
bitmap-based card drawing routine or a pixmap based rou
tine (selectable at compile time). With the pixmap based
drawing routine, antialiased colour images of the rank and
suit symbols are supplied. The bitmap card images are
black and red by default, but users can supply images of
complete colour cards in XPM format.
_x_p_a_t_2 may be compiled with the Athena widget set (or its
nicer replacement, the Xaw3d widget set), or with a stan
dard Xlib interface. The command line parameters and X
resource names of these versions differ. This manual page
describes only the Athena widget version, for the Xlib
options please refer to the _x_p_a_t manual page.
RRUULLEE CCUUSSTTOOMMIIZZAATTIIOONN OOPPTTIIOONNSS
--rruulleess _r_u_l_e _n_a_m_e
(Resource: TTaabblleeaauu..rruulleess)
This option specifies the initial rule set for _x_p_a_t.
Valid rule names are GGyyppssyy, SSppiiddeerr, FFrreeeeCCeellll,
KKlloonnddiikkee, and SSeeaahhaavveenn, MMoonnttee CCaarrlloo, CCaallccuullaattiioonn, CCaann
ffiieelldd, BBaakkeerr''ss DDoozzeenn, and others. Supply an invalid
rule name to see a complete listing.
The initial rule set may also be given by the name of
the executable (capitalisation is important). A prede
fined rule set may be customized by the following
options, but not all options apply to every rule set.
--sslloottss _s_l_o_t_s
(Resource: TTaabblleeaauu..sslloottss)
Use a different number of slots.
--ttmmppss _t_m_p_s
(Resource: TTaabblleeaauu..ttmmppss)
Use a different number of temporary storage places.
Handmade June 1994 1
XPAT2(6) XPAT2(6)
--ddeecckkss _d_e_c_k_s
(Resource: TTaabblleeaauu..ddeecckkss)
Use a different number of decks. Every deck has a full
set of 52 cards. This option does also set the number
of stacks. (To 4 times the number of decks, natu
rally.)
--ffaacceeddoowwnn _n_u_m_b_e_r
(Resource: TTaabblleeaauu..ffaacceeddoowwnn)
Specifies the number of cards per slot which are ini
tially dealt face-down (i.e. invisible).
--ffaacceeuupp _n_u_m_b_e_r
(Resource: TTaabblleeaauu..ffaacceeuupp)
Specifies the number of cards per slot which are ini
tially dealt face-up.
--jjookkeerrss _n_u_m_b_e_r
(Resource: TTaabblleeaauu..jjookkeerrss)
Specifies the number of jokers in the game (increasing
the number of cards). With jokers, you have to put
all ordinary cards onto the stacks and keep the jokers
on the slots.
--rreellaaxxeedd _n_u_m_b_e_r
--fflliippss _n_u_m_b_e_r --ttuurrnn _n_u_m_b_e_r --rroottaattiioonnss _n_u_m_b_e_r
(Resource: TTaabblleeaauu..rreellaaxxeedd to TTaabblleeaauu..rroottaattiioonnss)
Defines game specific customisation parameters.
--rrnngg _n_u_m_b_e_r
(Resource: TTaabblleeaauu..rrnngg)
This option affects the random number generator. rng 0
(used up to version 1.03 of xpat2) has been found to
generate not uniformly distributed permutations. You
may activate it to be able to replay old saved games.
The default is rng 1.
GGRRAAPPHHIICC OOPPTTIIOONNSS
All standard X toolkit parameters may be given, such as
--ddiissppllaayy _d_i_s_p_l_a_y
Specifies on which display to run.
--ggeeoommeettrryy _g_e_o_m_e_t_r_y
(Resource: ggeeoommeettrryy) Specifies the initial geometry.
Handmade June 1994 2
XPAT2(6) XPAT2(6)
Other options are:
--ccaarrddss _c_a_r_d_s_e_t
(Resource: TTaabblleeaauu..ccaarrddss)
_c_a_r_d_s_e_t is the filename of an external bitmap card set
which will be used instead of the built-in cardset.
There are two card sets, namely ssmmaallll and ffrreenncchh.
You can also give the full pathname of a cardset here.
--xxppmmddiirr _x_p_m_d_i_r
(Resource: TTaabblleeaauu..xxppmmddiirr)
Tells _x_p_a_t_2 to search _x_p_m_d_i_r for colour replacements
of the card images. The filenames searched for are
JJookkeerr..xxppmm and _R_a_n_k_._S_u_i_t..xxppmm, where _R_a_n_k is one of TTwwoo
to TTeenn, or one of JJaacckk,, QQuueeeenn,, KKiinngg,, AAccee. The display
must be capable of displaying all images at the same
time. For a 256-colour display, no more than 128
colours should be used for all card images together.
An additional file, CCaarrddbbaacckk..xxppmm, may give you nice
cardbacks.
If the directory name _x_p_m_d_i_r does not start with a dot
or a slash, it is interpreted as a subdirectory of
//uussrr//ggaammeess//lliibb//xxppaatt.
--xxppmmccllss _x_p_m_c_l_s
(Resource: TTaabblleeaauu..xxppmmccllss)
Tells _x_p_a_t_2 to allow using colours of the given close
ness when allocation of the real colour fails during
the reading of an xpm file. This option is useful on
8-bit X-servers when many colours are already allo
cated by other applications (typically when using a
KDE desktop).
--ttbb _c_o_l_o_r
(Resource: TTaabblleeaauu..bbaacckkggrroouunndd)
Sets the background color to _c_o_l_o_r. The default is
LLiigghhttSSllaatteeGGrreeyy.
--ccbb _c_o_l_o_r
(Resource: TTaabblleeaauu..ccaarrddbbaacckkCCoolloorr)
Sets the background color of the cards to _c_o_l_o_r. The
default is SSllaatteeGGrreeyy. This option is not in effect
when an XPM replacement for the cardback is used.
--mmaarrkkwwiiddtthh _w_i_d_t_h
(Resource: TTaabblleeaauu..mmaarrkkWWiiddtthh)
Sets the width of the dashed frame which marks
Handmade June 1994 3
XPAT2(6) XPAT2(6)
selected cards. If this width is at least half of the
card width, marked cards will be shaded. The default
is to shade the cards.
--mmaarrkkccoolloorr _c_o_l_o_r
(Resource: mmaarrkkCCoolloorr)
Sets the color of the marking frame.
--ssoouunndd,, --nnoossoouunndd
(Resource: SSoouunndd..ssttaattee)
Enables or Disables sound.
NNAATTIIVVEE LLAANNGGUUAAGGEE SSUUPPPPOORRTT
xxppaatt22 has simple support for different languages. All mes
sages which appear in the X11 window may be overloaded by
files, as well as the key bindings. The typical support
consists of an application-defaults file, a message file,
and a keyboard file. Possibly translated online-help files
are also there. To select a different language, call
xxppaatt22 after setting the environment variable LLAANNGG to the
desired value. Some ISO3166 language codes will be mapped
to their correspondig xpat2 directory names. Currently,
italian and german versions are available, and fragments
of a french and russian version. The russian version
requires a special cyrillic font, ssqq0011. The bdf-file is
distributed with xxppaatt22, you have to convert it into a for
mat supported by your X-server (pcf, snf, ...)
FFIILLEESS
(Directories may differ on your system, especially the
library subdirectory
may be //uussrr//ggaammeess//lliibb//xxppaatt instead of
//uussrr//lliibb//ggaammeess//xxppaatt.)
//uussrr//ggaammeess//xxppaatt22
//vvaarr//lliibb//ggaammeess//xxppaatt22//xxppaatt..lloogg
//uussrr//ddoocc//ccooppyyrriigghhtt//xxppaatt22
//uussrr//lliibb//ggaammeess//xxppaatt//ssmmaallll..ccaarrddss
//uussrr//lliibb//ggaammeess//xxppaatt//ffrreenncchh..ccaarrddss
//uussrr//lliibb//ggaammeess//xxppaatt//aauuddiioo//ssuucccceessss..aauu
//uussrr//lliibb//ggaammeess//xxppaatt//aauuddiioo//ggiivveeuupp..aauu
//uussrr//lliibb//ggaammeess//xxppaatt//aauuddiioo//ggooooddbbyyee..aauu
//uussrr//lliibb//ggaammeess//xxppaatt//aauuddiioo//ccaannnnoottssaavvee..aauu
//uussrr//lliibb//ggaammeess//xxppaatt//hheellpp..**
//uussrr//lliibb//ggaammeess//xxppaatt//hhllpp**
and a number of subdirs of //uussrr//lliibb//ggaammeess//xxppaatt, containing
sets of colour cards.
Handmade June 1994 4
XPAT2(6) XPAT2(6)
DDIIAAGGNNOOSSTTIICCSS
Almost none. (Type 'vv' to see the version number. This is
the man-page of xpat2 version 1.06, using Athena Widgets.
The game may behave somewhat different when used with
another widget set.)
BBUUGGSS
Correct cheat counting is not implemented in all rules.
Only a few rule customisations are checked and meaningful.
The Motif/Lesstif and Xview interfaces doesn't work reli
able. Any volunteers?
xxppaatt22 uses a lot of colours when compiled with the module
XX--ggffxx22 and may therefore fail to start if you have an
8-bit or monochrome display. In this case, compile the
game using the graphics loader XX--ggffxx11, which uses the
original card images from ssppiiddeerr or start the game using
the option --ccaarrddss ffrreenncchh, which uses monochrome card
graphics from the file ffrreenncchh..ccaarrddss. On 8-bit displays
you can also experiment with the --xxppmmccllss option.
There is a problem with X-servers which are short on mem
ory. In this case, some parts of the xpat2 window may be
left blank after a resize event. You have to hit <ctrl-L>
to get the window redrawn correctly.
Please mail bug reports to MMiicchhaaeell..BBiisscchhooffff@@ggmmxx..nneett.
Fixes are especially welcome.
SSEEEE AALLSSOO
xxppaatt((66xx)), ssppiiddeerr((11)), xxssooll((11))
AAUUTTHHOORRSS
Heiko Eissfeldt and Michael Bischoff
CCOOPPYYRRIIGGHHTT
Copyright (c) 1994 by Heiko Eissfeldt and Michael Bischoff
(hheeiikkoo@@ccoolloossssuuss..eessccaappee..ddee and mmbbii@@mmoo..mmaatthh..nnaatt..ttuu--bbss..ddee)
Copyright (c) 1990 by David Lemke & Network Computing
Devices, Inc.
(lleemmkkee@@nnccdd..ccoomm)
Copyright 1990 Heather Rose and Sun Microsystems, Inc.
Copyright (c) 1989, Donald R. Woods and Sun Microsystems,
Inc.
Handmade June 1994 5
XPAT2(6) XPAT2(6)
Permission to use, copy, modify, and distribute this soft
ware and its documentation for any purpose and without fee
is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
documentation.
xxppaatt and xxppaatt22 were developed under Linux, the free UNIX
for the IBM-PC and compatibles. xxppaatt is based on the game
ssppiiddeerr. All new code which is not covered by ssppiiddeerr copy
rights is distributed by terms of the GNU General public
license (GNU Copyleft).
Handmade June 1994 6